package cn.itnanls.exception;

import cn.itnanls.util.ResultCode;

/**
 * 统一的业务异常
 * @author Ding
 */
public class BusinessException extends RuntimeException {
    private int code;
    private String msg;
    public BusinessException(ResultCode resultCode){
        this.code= resultCode.getCode();
        this.msg =resultCode.getMsg();
    }
}
